﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JGSoft.U9CRTAPIEX.DTOs.RequestDTOs
{
    public class KanBanDTO
    {
        /// <summary>
        /// 年总产量
        /// </summary>
        public decimal ZCL { get; set; }
        /// <summary>
        /// 年累计订单
        /// </summary>
        public decimal LJDD { get; set; }
        /// <summary>
        /// 年品种
        /// </summary>
        public decimal PZ { get; set; }
        /// <summary>
        /// 订单成套率
        /// </summary>
        public decimal DDCTL { get; set; }

        /// <summary>
        /// 入库未包装
        /// </summary>
        public decimal RKWBZ { get; set; }
        /// <summary>
        /// 未发运数
        /// </summary>
        public decimal WFY { get; set; }
        /// <summary>
        /// 当日入库笔数
        /// </summary>
        public decimal RKBS { get; set; }
        /// <summary>
        /// 当日入库数量
        /// </summary>
        public decimal RKSL { get; set; }
        /// <summary>
        /// 当日包装笔数
        /// </summary>
        public decimal BZBS { get; set; }
        /// <summary>
        /// 当日包装数量
        /// </summary>
        public decimal BZSL { get; set; }
        /// <summary>
        /// 已接订单笔数
        /// </summary>
        public decimal DDBS { get; set; }

        /// <summary>
        /// 已接订单数量
        /// </summary>
        public decimal DDSL { get; set; }

        /// <summary>
        /// 已完结订单笔数
        /// </summary>
        public decimal WJBS { get; set; }
        /// <summary>
        /// 已完结订单数量
        /// </summary>
        public decimal WJSL { get; set; }
        /// <summary>
        /// 未完结订单笔数
        /// </summary>
        public decimal WWBS { get; set; }
        /// <summary>
        /// 未收订单数量
        /// </summary>
        public decimal WSSL { get; set; }
        /// <summary>
        /// 超期订单笔数
        /// </summary>
        public decimal CQBS { get; set; }
        /// <summary>
        /// 超期订单数量
        /// </summary>
        public decimal CQSL { get; set; }
        /// <summary>
        /// 看板明细数据
        /// </summary>
        public List<KanBanDetailDTO> Details { get; set; } = new List<KanBanDetailDTO>();
    }

    public class KanBanDetailDTO
    {
        /// <summary>
        /// 客户交期
        /// </summary>
        public string RequireDate { get; set; }
        /// <summary>
        /// 内部销售订单号
        /// </summary>
        public string SODocNo { get; set; }
        /// <summary>
        /// 客户简称
        /// </summary>
        public string Customer { get; set; }

        /// <summary>
        /// 订单行数
        /// </summary>
        public int LineNum { get; set; }
        /// <summary>
        /// 订单数
        /// </summary>
        public decimal OrderQty { get; set; }
        /// <summary>
        /// 已实收数量
        /// </summary>
        public decimal TotalRecievedQtyTU { get; set; }
        /// <summary>
        /// 已包装
        /// </summary>
        public decimal PackingQty { get; set; }
        /// <summary>
        /// 已入库
        /// </summary>
        public decimal StoreQty { get; set; }
        /// <summary>
        /// 未入库
        /// </summary>
        public decimal UnStoreQty { get; set; }
        /// <summary>
        /// 入库未包装
        /// </summary>
        public decimal StoreUnPackingQty { get; set; }
        /// <summary>
        /// 已发运
        /// </summary>
        public decimal ShipQtyInvAmount { get; set; }
        /// <summary>
        /// 未发运
        /// </summary>
        public decimal UnShipQtyInvAmount { get; set; }
        /// <summary>
        /// 延迟天数
        /// </summary>
        public int DelayDays { get; set; }


    }
}
